#2.py

def read(filepath):
	try:
		f = open(filepath, 'r')
		print(f.read(-1))
		f.close()
	except IOError:
		print("file is not exist\n")
	else:
		print("file read success\n")
	finally:
		pass

read(input("input a filepath\n"))